import request from '@/utils/request'

// 查询车辆离场记录列表
export function listParkLeave(query) {
  return request({
    url: '/system/parkLeave/list',
    method: 'get',
    params: query
  })
}
// 岗亭车辆进出场
export function gangtingList(query) {
  return request({
    url: '/system/parkLeave/gangtingList',
    method: 'get',
    params: query
  })
}
// 放行记录
export function leaveRecordList(query) {
  return request({
    url: '/system/parkLeave/leaveRecordList',
    method: 'get',
    params: query
  })
}
// 获取停车费用
export function getPriceTotal(query) {
  return request({
    url: '/system/parkLeave/getPriceTotal',
    method: 'get',
    params: query
  })
}

// 查询车辆离场记录详细
export function getParkLeave(id) {
  return request({
    url: '/system/parkLeave/' + id,
    method: 'get'
  })
}

// 新增车辆离场记录
export function addParkLeave(data) {
  return request({
    url: '/system/parkLeave',
    method: 'post',
    data: data
  })
}

// 修改车辆离场记录
export function updateParkLeave(data) {
  return request({
    url: '/system/parkLeave',
    method: 'put',
    data: data
  })
}

// 删除车辆离场记录
export function delParkLeave(id) {
  return request({
    url: '/system/parkLeave/' + id,
    method: 'delete'
  })
}

// 导出车辆离场记录
export function exportParkLeave(query) {
  return request({
    url: '/system/parkLeave/export',
    method: 'get',
    params: query
  })
}
// 导出车辆离场记录
export function exportGangTing(query) {
  return request({
    url: '/system/parkLeave/exportGangTing',
    method: 'get',
    params: query
  })
}
// 导出放行记录
export function exportLeaveRecord(query) {
  return request({
    url: '/system/parkLeave/exportLeaveRecord',
    method: 'get',
    params: query
  })
}
